All You Need is the Monad. . . What Monad Was That Again?

نویسنده

  • Norman Ramsey
چکیده

Probability enjoys a monadic structure (Lawvere 1962; Giry 1981; Ramsey and Pfeffer 2002). A monadic computation represents a probability distribution, and the unit operation return a creates the (Dirac) distribution “certainly a.” The bind operation combines a distribution of type M a and a function of type a -> M b; the function is a probability kernel (Pollard 2002), and it represents the conditional probability of b given a. The bind operation produces a new distribution which is defined using a Lebesgue integral, also called an “abstract” integral, over all possible values of type a. The Lebesgue integral works out in the same way whether the measurable space of a’s is discrete, continuous, or hybrid. To write interesting distributions, one must include in one’s monad one or more probabilistic operations, like discrete choice or a primitive distribution. Useful primitive distributions include a biased coin (Borgström et al. 2013), the uniform distribution over the unit interval (Park, Pfenning, and Thrun 2008), normal, beta, gamma, and other distributions. Probability monads inform the design of several programming languages, including some cited above. But a probabilistic programming language must do more than just represent probability distributions; it must support inference. In Bayesian inference, a term in the language denotes a prior distribution, some information is observed, and using the prior distribution and the evidence provided by the observation, we calculate or estimate a posterior distribution. This operation is sometimes called conditioning. Inference and conditioning raise design questions that appear not to have canonical answers. Here are some:

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Applications of the Kleisli and Eilenberg-Moore 2-adjunctions

In 2010, J. Climent Vidal and J. Soliveres Tur developed, among other things, a pair of 2-adjunctions between the 2-category of adjunctions and the 2-category of monads. One is related to the Kleisli adjunction and the other to the Eilenberg-Moore adjunction for a given monad.Since any 2-adjunction induces certain natural isomorphisms of categories, these can be used to classify bijection...

متن کامل

A Description of Iterative Reflections of Monads

For ideal monads in Set (e. g. the finite list monad, the finite bag monad etc.) we have recently proved that every set generates a free iterative algebra. This gives rise to a new monad. We prove now that this monad is iterative in the sense of Calvin Elgot, in fact, this is the iterative reflection of the given ideal monad. This shows how to freely add unique solutions of recursive equations ...

متن کامل

Iterative reflections of monads

Iterative monads, introduced by Calvin Elgot in the 1970’s, are those ideal monads in which every guarded system of recursive equations has a unique solution. For every ideal monad M we prove that an iterative reflection, i.e., an embedding M ↪−→ M̂ into an iterative monad with the expected universal property, exists. We also introduce the concept of iterativity for algebras for the monad M, fol...

متن کامل

A cottage industry of lax extensions

In this work, we describe an adjunction between the comma category of Set-based monads under the V -powerset monad and the category of associative lax extensions of Set-based monads to the category of V -relations. In the process, we give a general construction of the Kleisli extension of a monad to the category of V-relations.

متن کامل

A RELATION BETWEEN THE CATEGORIES Set * , SetT, Set AND SetT

In this article, we have shown, for the add-point monad T, thepartial morphism category Set*is isomorphic to the Kleisli category SetT. Alsowe have proved that the category, SetT, of T-algebras is isomorphic to thecategory Set of pointed sets. Finally we have established commutative squaresinvolving these categories.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2015